<?php session_start(); 

//if user is not logged in then don't let them anywhere except for index.php, login, and signup.php
if(($_SERVER['PHP_SELF'] != "/wireframe/index.php" && $_SERVER['PHP_SELF'] != "/wireframe/signup.php" && $_SERVER['PHP_SELF'] != "/wireframe/login/login.php") && $_SESSION["status"] != "authorized") header("Location: /wireframe/login");

//if the user is logged in then don't let them on signup.php or login.php
if(($_SERVER['PHP_SELF'] == "/wireframe/signup.php" || $_SERVER['PHP_SELF'] == "/wireframe/login/login.php") && $_SESSION["status"] == "authorized") header("Location: /wireframe");
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />